import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: '/index',

    },
    {
      path: '/index',
      name: 'index',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/index/index.vue'),
    },
    {
      path: '/about',
      name: 'about',
      component: () => import('../views/about/index.vue'),
    },
    {
      path: '/solution',
      name: 'solution',
      component: () => import('../views/solution/index.vue'),
    },
    {
      path: '/productions',
      name: 'productions',
      component: () => import('../views/productions/index.vue'),
    },
    {
      path: '/news',
      name: 'news',
      component: () => import('../views/news/index.vue'),
    },
    {
      path: '/contact',
      name: 'contact',
      component: () => import('../views/contact/index.vue'),
    },

  ],
})

export default router
